Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed empty component 'computed' from throwing error. #454

Merged
merged 1 commit into from
Apr 5, 2017

Conversation

taylorzane
Copy link
Contributor

Fixes #452.

Referencing computations.length instead of templateProperties.computed prevents the generator from adding in invalid code when an empty object is passed as the computed value.

I've added a (passing) test that ensures that the component instantiates while having an empty computed object.

…an empty object to prevent the component from compiling.
@Rich-Harris Rich-Harris merged commit 6802f43 into sveltejs:master Apr 5, 2017
@Rich-Harris
Copy link
Member

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants